<%@page import="controllers.GameMenuController"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Welcome to Pandemic's game menu.</title>
<style type="text/css">
body{
background-image: url("Images/background.png");
background-size: cover;
}
.pos{
	position : relative;
	top: 100px;
}
.topcorner{
    position:absolute;
    top:10px;
    right: 10px;
 }
</style>
</head>
<body>
<a href = "/Pandemic/Logout"><div class = "topcorner"><button>Log out</button></div></a>
<div class = "pos">
<h1 align = "center">Game Menu</h1>

	<table align = "center">
		<tr>
			<td><b>Join game:</b></td>
			<td><form method="get" action = "/Pandemic/JoinLobby"><button type="submit" <% if (GameMenuController.getGameStarting()) {out.print("disabled=\"disabled\"");}%> style="width: 108px; "><b>Join
						Lobby</b></button></form></td>
		</tr>
		<tr>
			<td><b>View your profile:</b></td>
			<td><a href="/Pandemic/Profile"><button type="button" style="width: 108px; "><b>View
						profile</b></button></a></td>
		</tr>
		<tr>
			<td><b>View ranking list:</b></td>
			<td><a href="/Pandemic/Ranking"><button type="button" style="width: 108px; "><b>Ranking</b></button></a></td>
		</tr>
		<tr>
			<td><b>Pandemic Rules:</b></td>
			<td><a href="/Pandemic/Rules"><button type="button" style="width: 108px; "><b>Rules</b></button></a></td>
		</tr>
	</table>
</div>

</body>
</html>